import { Entity, PrimaryUuid, CouponLogId, MemberId, CreateDate, Remark, Boolean } from "@sker/core";

@Entity({ name: 'coupon_grant_log', comment: '优惠券转赠记录' })
export class CouponGrantLog {

    @PrimaryUuid({
        primaryKeyConstraintName: "PK_COUPON_GRANT_LOG_ID"
    })
    id!: string;

    @CouponLogId()
    log_id: string;

    @MemberId()
    from!: string;

    @MemberId()
    to: string;

    @Boolean({ comment: '是否接受' })
    status!: boolean;

    @Remark({ comment: '留言' })
    remark: string;

    @CreateDate()
    create_date: Date;
}
